<?php

namespace Model\CommentsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Comments
 *
 * @ORM\Table(name="comments")
 * @ORM\Entity(repositoryClass="Model\CommentsBundle\Repository\CommentsRepository")
 */
class Comments
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="who", type="integer")
     */
    private $who;

    /**
     * @var int
     *
     * @ORM\Column(name="whom", type="integer")
     */
    private $whom;

    /**
     * @var string
     *
     * @ORM\Column(name="what", type="text")
     */
    private $what;

    /**
     * @var int
     *
     * @ORM\Column(name="time", type="integer")
     */
    private $time;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set who
     *
     * @param integer $who
     *
     * @return Comments
     */
    public function setWho($who)
    {
        $this->who = $who;

        return $this;
    }

    /**
     * Get who
     *
     * @return int
     */
    public function getWho()
    {
        return $this->who;
    }

    /**
     * Set whom
     *
     * @param integer $whom
     *
     * @return Comments
     */
    public function setWhom($whom)
    {
        $this->whom = $whom;

        return $this;
    }

    /**
     * Get whom
     *
     * @return int
     */
    public function getWhom()
    {
        return $this->whom;
    }

    /**
     * Set what
     *
     * @param string $what
     *
     * @return Comments
     */
    public function setWhat($what)
    {
        $this->what = $what;

        return $this;
    }

    /**
     * Get what
     *
     * @return string
     */
    public function getWhat()
    {
        return $this->what;
    }

    /**
     * Set time
     *
     * @param integer $time
     *
     * @return Comments
     */
    public function setTime($time)
    {
        $this->time = $time;

        return $this;
    }

    /**
     * Get time
     *
     * @return int
     */
    public function getTime()
    {
        return $this->time;
    }
}

